/* Author : Putri Andita R
 * 		    091511059
 * Proyek 4*/


package jtk.project4.fleet.field;

import java.awt.FlowLayout;

import nl.coderight.jazz.form.FormField;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.MemoField;
import nl.coderight.jazz.form.field.button.PushButton;

public class ProcedureField extends GroupControl{	
	
	private MemoField  proceduretextArea;
	private PushButton saveButton;
			
	
	public ProcedureField(String bindID)
	{
		setBindID(bindID);
		createFields();
		createLayout();		
	}	
	
	private void createFields() 
	{
		proceduretextArea = new MemoField();
		proceduretextArea.setRows(20);
		
		saveButton = new PushButton("saveAction");
	}
	
	private void createLayout() 
	{
		// TODO Auto-generated methodstub
		setLayout(new FormLayout())
		.addField(proceduretextArea)
		.addRow()
		.addField(saveButton)
		.addRow()
		.addLabel("! Use the 'Procedures' area to indicate a procedure or special instructions")
		.addRow()
		.addLabel("to perform the selected 'PM Service'. When the 'PM Service' is due or chosen,")
		.addRow()
		.addLabel("this procedure will be automatically populated on the work order.")
				;
		
		
	}
}
		
	
	
	